<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 13:21
 */

namespace util\validate\rules;

/**
 * 验证值是否和指定的参数一致
 *
 * Class Equal
 * @package validate\rules
 */
class Equal extends BaseRule
{
    public function verify()
    {
        return 0 === strcmp($this->params, $this->value);
    }
}